hi i have written a simple script to check if any of the attributes are not filled or incorrect. But the problem is once i run the script it is working fine and prinitng all the Obejct ID's along with the message like " Author name is missing, rack number is missing like that. But i prefer along with this even the Level 1 heading also needs to be printed. Can anyone help me in this regard.
//DXL script to parse the data.
Module m = current
Object o = null
string oot = ""
string NULL = ""
const string sOutFileName = "c:\\temp\\MyFile.csv"
Stream out = write sOutFileName
int oid
int Count = 0
for o in m do {
oot = o."Test Classification"
if oot == "Step" then
{
oot = o."L4R1 Pass or Fail"
if (oot!= NULL) then
{
Count ++
//print oot
//Do nothing
}
else
{
oid = o."Absolute Number"
print oid "\t" "Pass/Fail status is not updated for this object ID" "\n"
}
oot = o."L4R1 Tester Name"
if (oot!= NULL) then
{
Count ++
//print oot
//Do nothing
}
else
{
oid = o."Absolute Number"
print oid "\t" "Tester Name is not updated for this object ID" "\n"
}
oot = o."L4R1 SW Version"
if (oot!= NULL) then
{
Count ++
//print oot
//Do nothing
}
else
{
oid = o."Absolute Number"
print oid "\t" "Software version is not updated for this object ID" "\n"
}
oot = o."L4R1 SDU Serial #"
if (oot == "030" or oot == "025" or oot == "022" or oot == "019" or oot == "024" or oot == "009") then
{
Count ++
//print oot
//Do nothing
}
else
{
oid = o."Absolute Number"
print oid "\t" "SDU serial # is not updated for this object ID" "\n"
}
oot = o."L4R1 RACK #"
if (oot == "3" or oot == "4" or oot == "5" or oot == "6" or oot == "7" or oot == "8" ) then
{
Count ++
//print oot
//Do nothing
}
else
{
oid = o."Absolute Number"
print oid "\t" "RACK # is not updated for this object ID" "\n"
}
}
}
lokeshchaitanya - Thu Mar 20 14:39:05 EDT 2014 | ||
Re: How to print the Object heading number along with the attribute Can anyone please help me in this regard | ||
Re: How to print the Object heading number along with the attribute lokeshchaitanya - Thu Mar 20 15:05:03 EDT 2014 Can anyone please help me in this regard Hi Lokesh, Bumping after 26 minutes? This seems to be extreeeemely urgent... Well, you might want to use the function Vertical navigationDeclaration
Object parent(Object
o)
Operation
and use a loop like
Best regards, | ||
Re: How to print the Object heading number along with the attribute Mike.Scharnow - Thu Mar 20 16:16:10 EDT 2014 Hi Lokesh, Bumping after 26 minutes? This seems to be extreeeemely urgent... Well, you might want to use the function Vertical navigationDeclaration
Object parent(Object
o)
Operation
and use a loop like
Best regards, Thank you mike | ||